﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace DataObjects
{
    public class FormaPagamento : INotifyPropertyChanged
    {

        private int _Id;

        public int Id
        {
            get { return _Id; }
            set 
            { 
                _Id = value;
                this.NotifyPropertyChanged("FormaPagamentoID");
            }
        }

        private string _Nome;

        public string Nome
        {
            get { return _Nome; }
            set 
            { 
                _Nome = value;
                this.NotifyPropertyChanged("FormaPagamentoNome");
            }
        }

        private string _Descricao;

        public string Descricao
        {
            get { return _Descricao; }
            set 
            { 
                _Descricao = value;
                this.NotifyPropertyChanged("FormaPagamentoDesc");
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }

        #endregion
    }
}
